<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%-- JSTL - Standard Tag Library --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%-- JSTL - Standard Format Library --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%-- Spring Security Tag Library --%>
<%@ taglib uri='http://www.springframework.org/security/tags' prefix='security' %>
	
<!DOCTYPE html>
<html>

<jsp:include page="/WEB-INF/views/templates/head.jsp" />

<body>

	<jsp:include page="/WEB-INF/views/templates/top.jsp" />
	
    <%--  Page Content --%>
    <div class="container">
    


            <%--  Blog Entries Column --%>
            <div class="col-md-4"></div>
    
            
            	<h2>发表评论</h2>
            	 						   
            	
            	<%-- 
					This form-login-page form is also used as the
				    form-error-page to ask for a login again.		        
				    Is called on login error from Spring Security Controller
				    using authentication-failure-url parameter.
				       
				    authentication-failure-url="/app/login?login_error=1" 
				--%>
				<div class="vertical-spacing-wrapper">				
					<form role="form" name="commentForm"  action="<c:url value="/app/comment/save" />" method="post">
					    <input type="hidden" value="${entryid}" name="entryid">
						<div class="form-group">
						    <textarea rows="13" cols="80" name="content"></textarea>
						</div>
						
						<div class="pull-left"><button id="submit" type="submit" class="btn btn-default pull-right">提交评论</button></div>
						
						<security:csrfInput />
								
					</form>
				</div>
			
			<div class="col-md-4"></div>
			
	
		
		<jsp:include page="/WEB-INF/views/templates/foot.jsp" />

    </div>
    <%--  /.container --%>
		
</body>